@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-primary: #ffa128; /* Orange highlight */
    --color-primary-dark: #994200; /* Darker orange for hover */
    --color-text-light: #e0e0e0;
    --color-text-medium: #b3b3b3;
    --color-text-dark-grey: #919496; /* Spotify grey */
    --color-footer-icon-bg: #222326;
    --color-footer-icon-hover: #727272;
    --font-primary: "Montserrat", sans-serif;
}

html {
    height: 100%; /* Ensure html takes full height */
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-black);
    color: var(--color-text-light);
    height: 100%; /* Ensure body takes full height */
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack elements vertically */
    margin: 0; /* Remove default body margin */
    font-family: var(--font-primary);
}

.navbar-logo{
    width: 12%;
    padding-left: 170px;
    padding-top: 50px;
}

.navbar-title {
    color: var(--color-white);
    font-size: 70px;
    font-family: var(--font-primary);
    padding-left: 190px;
    padding-top: 50px;
    line-height: 1.1;
    /* word-spacing: 5px; */
    /* letter-spacing: 100px; */
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: var(--color-black);
}

.navbar {
    position: fixed;
    top: -10px;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 10px 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background-color: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #d7a900;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d7a900;
    transition: width 0.3s ease;
}

.non-funziona a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d7a900;
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

.non-funziona a:hover::after {
    width: 100%;
}

.non-funziona {
    padding-right: 60px;
}

.navbar-logo-link {
    display: inline-block; /* Ensure link wraps image properly */
}

.navbar-logo {
    width: 100px; /* Adjust size as needed */
    height: auto; /* Maintain aspect ratio */
    padding: 0; /* Remove previous padding */
    margin: 0; /* Remove previous margin */
    filter: brightness(0) invert(1); /* Keep this for white logo */
}

.nav-links {
    display: flex;
    gap: 30px;
}

/* Styling for the h1 containing the link - Remove absolute positioning */
.abbonamenti, .contatti { /* Apply to both if .contatti exists */
    margin: 0; 
    padding: 0; /* Reset padding */
    font-size: 18px; /* Adjust size */
    font-weight: bold;
    transition: font-size 0.3s ease, color 0.3s ease;
    /* Remove position: absolute, top, right, z-index */
    /* position: absolute; */ 
    /* top: 80px; */      
    /* right: 420px; */   
    /* z-index: 9999; */  
    background-color: transparent; /* Remove background */
}

/* Stile per il link interno */
.abbonamenti a, .contatti a {
    text-decoration: none;
    color: var(--color-white);
    position: relative;
    transition: font-size 0.3s ease, color 0.3s ease;
}

/* Effetto hover (colore e ingrandimento) */
.abbonamenti a:hover, .contatti a:hover {
    color: var(--color-primary);
    /* font-size: 20px; */ /* Adjust hover size if needed */
}

/* Underline animato */
.abbonamenti a::after, .contatti a::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Adjust position of underline */
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.abbonamenti a:hover::after, .contatti a:hover::after {
    width: 100%;
}

.disordinato {
    color: var(--color-primary);
}

.spreco {
    color: var(--color-primary);
}

.evidenziato {
    color: var(--color-primary);
}

img.home {
    position: absolute;
    width: 30%;
    padding-left: 60%;
    top: 20%;
    /* padding-top: -100%; */
}

.sottopunti {
    padding-left: 190px ;
    margin-top: -30px;
    color: var(--color-white) !important;
}

.immagini {
    margin-top: 20px;
}

.scarica {
    margin-top: 50px;
    padding-left: 190px;
}

img.app {
    width: 8%;
    padding-left: 190px;
}

img.google {
    width: 8%;
}

/* Stile per il pulsante SCARICA */

.btn-scarica {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 25px; /* Dimensione del testo */
    font-family: var(--font-primary);
    font-weight: 600; /* Peso del testo */
    padding: 15px 30px; /* Padding per ingrandire il pulsante */
    border-radius: 10px; /* Angoli arrotondati */
    text-decoration: none; /* Rimuove la sottolineatura dal link */
    display: inline-block; /* Impostazione per centrare il pulsante */
    transition: transform 0.3s ease, background-color 0.3s ease;
    transform: scale(1);
}


/* Effetto al passaggio del mouse */
.btn-scarica:hover {
    background-color: var(--color-primary-dark);
    cursor: pointer; /* Cambia il cursore per il pulsante */
    transform: scale(1.05);
}


.parola {
    font-weight: 300;
    font-family: "Montserrat";
    color: black;
    opacity: 0; /* Inizia con opacità 0 (trasparente) */
    animation: fadeIn 3s forwards; /* Applica l'animazione */
}

.parola:nth-child(1) {
    animation-delay: 0s; /* Nessun ritardo per la prima parola */
}

.parola:nth-child(2) {
    animation-delay: 1s; /* Ritardo di 1 secondo per la seconda parola */
}

.parola:nth-child(3) {
    animation-delay: 2s; /* Ritardo di 2 secondi per la terza parola */
}

/* Animazione */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

h2.titolo-descrizione {
    color: var(--color-white);
    margin-top: 50px;
    font-size: 60px;
    font-family: var(--font-primary);
    text-align: center; /* Questo centra il testo orizzontalmente */
    line-height: 1.1;
    font-weight: 800;
}


.text-descrizione {
    font-size: 16px;
    color: var(--color-grey-light);
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 20px;
}

/* Spotify Footer Styles */
.spotify-footer {
    background-color: var(--color-black);
    color: var(--color-text-dark-grey);
    padding: 40px 0 25px; /* Reduced padding */
    font-size: 16px;
    line-height: 1.5;
    flex-shrink: 0; /* Ensure footer doesn't shrink */
    font-family: var(--font-primary);
}

.spotify-footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    height: 40px; /* Adjust as needed */
    width: auto;
    filter: brightness(0) invert(1); /* Make logo white if needed */
}

.footer-columns {
    display: flex;
    flex-grow: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 60px;
    margin-left: 60px; /* Space between logo and columns */
}

.footer-column h3 {
    color: var(--color-white);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 22px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.footer-column ul li a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer-social-icons {
    display: inline-flex; /* Keep icons grouped but allow column layout */
    flex-direction: column; /* Stack icons vertically */
    gap: 15px;
    /* Remove width: 100% from responsive if it exists */
}

.footer-social-icons a {
    background-color: var(--color-footer-icon-bg);
    color: var(--color-white);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.footer-social-icons a:hover {
    background-color: var(--color-footer-icon-hover);
    color: var(--color-white);
}

.footer-social-icons a i {
    font-size: 20px;
}

.spotify-footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0; /* Reduced top margin */
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-legal-links a {
    color: var(--color-text-dark-grey);
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: var(--color-white);
}

.footer-region-copy {
    display: flex;
    flex-direction: column; /* Stack region and copyright */
    align-items: flex-end;
    text-align: right;
    gap: 10px;
}

.footer-region-copy span {
    color: var(--color-text-dark-grey);
}

.footer-region-copy span i {
    margin-right: 5px;
}

/* Responsive adjustments for Spotify Footer */
@media screen and (max-width: 992px) {
    .footer-columns {
        margin-left: 0; /* Remove left margin on smaller screens */
        justify-content: flex-start;
    }
    .footer-social-icons {
        /* width: 100%; */ /* Remove this if set */
        /* justify-content: flex-start; */ /* Not needed for column */
        margin-top: 20px;
        align-items: flex-end; /* Align icons to the right */
    }
}

@media screen and (max-width: 768px) {
    .spotify-footer-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-columns {
        width: 100%;
        gap: 30px;
    }
    .footer-column {
        width: calc(50% - 15px); /* Two columns on medium screens */
    }
    .footer-social-icons {
         margin-top: 30px;
         align-items: flex-start; /* Align icons to left on mobile stack */
    }
    .spotify-footer-bottom {
        margin-top: 40px;
        flex-direction: column-reverse; /* Stack copyright above links */
        align-items: flex-start;
        gap: 20px;
    }
    .footer-region-copy {
        align-items: flex-start;
        text-align: left;
    }
    .navbar-title {
        font-size: 40px;
        padding-left: 20px;
        padding-top: 30px;
        color: var(--color-white); /* Ensure dark theme color */
    }
    .abbonamenti a, .contatti a {
         color: var(--color-white); /* Ensure dark theme color */
    }
    h2.titolo-descrizione {
        font-size: 40px; /* Adjust size */
        color: var(--color-white); /* Ensure dark theme color */
    }
    .text-descrizione {
        font-size: 16px; /* Adjust size */
         color: var(--color-text-medium); /* Ensure dark theme color */
    }
}

@media screen and (max-width: 576px) {
    .footer-column {
        width: 100%; /* Single column on small screens */
    }
    .navbar-title {
        font-size: 32px;
    }
    h2.titolo-descrizione {
        font-size: 34px;
    }
     .text-descrizione {
        font-size: 15px;
    }
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Improve button hover animation */
.btn-scarica {
    transform: scale(1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-scarica:hover {
    transform: scale(1.05);
}

/* Add loading animation for images */
img {
    opacity: 0;
    animation: fadeInImage 0.5s ease forwards;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    flex-shrink: 0; /* Prevent header from shrinking */
}

main {
    flex-grow: 1; /* Allow main content to grow and push footer down */
    padding-top: 80px; /* Adjust this value based on the actual height of the header */
}

.about-section {
    text-align: center;
    padding: 40px 20px;
}

.text-descrizione {
    font-size: 16px;
    color: var(--color-grey-light);
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 20px;
}

/* --- Responsive Design --- */

/* Larger Screens */
@media (min-width: 1200px) {
    /* Optional adjustments for very large screens */
}

/* Medium Screens/Tablets */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 30px;
    }
    .navbar-title {
        font-size: 55px;
        padding-left: 100px;
        padding-top: 40px;
    }
    img.home {
        width: 35%;
        padding-left: 60%; /* Keep relative position */
        top: 25%;
    }
    .sottopunti {
        padding-left: 100px;
    }
    .scarica {
        padding-left: 100px;
    }
    img.app {
        padding-left: 100px;
    }
    h2.titolo-descrizione {
        font-size: 50px;
    }
    .text-descrizione {
        font-size: 18px;
    }
    .about-section {
        margin-bottom: 100px;
    }

    /* Footer adjustments if needed */
    .footer-columns {
        margin-left: 0;
        justify-content: flex-start;
    }
    .footer-social-icons {
        /* width: 100%; */ /* Remove this if set */
        /* justify-content: flex-start; */ /* Not needed for column */
        margin-top: 20px;
        align-items: flex-end; /* Align icons to the right */
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        flex-direction: column; /* Stack logo and links */
        align-items: flex-start;
        gap: 10px;
    }
    .navbar-logo {
        width: 80px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: var(--color-black);
    }
    .nav-links.active {
        display: flex;
    }
    .navbar-title {
        font-size: 36px;
        padding-left: 20px;
    }
    .home {
        width: 80%;
        margin: 0 auto;
    }
    .scarica, .immagini {
        text-align: center;
    }
    .btn-scarica {
        font-size: 20px;
        padding: 12px 25px;
    }
    .titolo-descrizione {
        font-size: 34px;
    }
    .text-descrizione {
        font-size: 16px;
        padding: 0 15px;
    }
    .about-section {
        margin-bottom: 80px;
    }

    main {
        padding-top: 0; /* Remove padding-top as header is not fixed */
    }

    /* Footer Responsive */
    .spotify-footer {
        padding: 50px 0 25px;
    }
    .spotify-footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .footer-columns {
        width: 100%;
        gap: 30px;
    }
    .footer-column {
        width: calc(50% - 15px);
    }
    .footer-social-icons {
         margin-top: 30px;
         align-items: flex-start; /* Align icons to left on mobile stack */
    }
    .spotify-footer-bottom {
        margin-top: 40px;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-region-copy {
        align-items: flex-start;
        text-align: left;
    }
}

/* Small Phones */
@media (max-width: 576px) {
     .navbar {
        padding: 10px 15px;
    }
    .navbar-title {
        font-size: 28px;
    }
    .sottopunti h2 span.parola {
        font-size: 16px;
    }
     .btn-scarica {
        font-size: 18px;
        padding: 10px 20px;
    }
     img.app, img.google {
        width: 100px; /* Adjust size */
    }
    h2.titolo-descrizione {
        font-size: 28px;
    }
     .text-descrizione {
        font-size: 14px;
    }
    .about-section {
        margin-bottom: 60px;
    }

    /* Footer Responsive */
    .footer-column {
        width: 100%; 
    }
    .footer-social-icons a {
        width: 45px;
        height: 45px;
    }
     .footer-social-icons a i {
        font-size: 18px;
    }
    .spotify-footer-bottom {
        font-size: 11px;
    }
}

/* Add generic focus style */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px; /* Optional: slightly round the outline */
}

#cookie-popup {
    display: none;
}

.animated-text {
    text-align: left;
    margin-top: -100px;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text-light);
}

.word {
    opacity: 0;
    animation: fadeInWord 1s forwards;
}

.word:nth-child(1) {
    animation-delay: 0s;
}

.word:nth-child(2) {
    animation-delay: 1s;
}

.word:nth-child(3) {
    animation-delay: 2s;
}

@keyframes fadeInWord {
    from { opacity: 0; }
    to { opacity: 1; }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
}
